include "Errors.thrift"
namespace java com.emagsoftware.partake.global
struct CommonComment {
      1: optional i64 id
      2: required string targetObject,
      3: required i64 userId,
      4: optional string userTel,
      5: optional string nikeName,
      6: optional string clientVersion,
      7: optional string userAgent,
      8: optional string userChannel,
      9: optional string clientPlatform,
      10: required string commentContent,
      11:optional i64 commentTime,
      12: optional string verifyUser,
      13: optional i64 verifyTime,
      14: optional i32 verifyResult,
      15: required i32 commentOrigin,
      16: optional string userIp,
      17: optional i32 commentType,
      18: optional i32 calculated ,
}
struct CommonCommentPageResult  {
      1: required  list<CommonComment> commentList,
      2: required  i64  total
}
service CommonCommentClient{
    void saveCommonComment(CommonComment commonComment)throws (1: Errors.ServiceRuntimeException serviceRuntimeException),
    CommonCommentPageResult  queryCommonComments(
                        1:required string targetObject,
                        2:required list<string> commentOrigins,
                        3:required string commentType,
                        4:optional i32 offset,
                        5:optional i32  max
            )throws (1: Errors.ServiceRuntimeException serviceRuntimeException),
    bool  isCommittedComment(
                         1: required i64 userId,
                         2: required string targetObject,
                         3: required string commentType,
                         4: required string commentOrigin,
    ) throws (1: Errors.ServiceRuntimeException serviceRuntimeException)
}